package com.prd.mapper;

import com.prd.dto.SysUserDTO;
import com.prd.model.SysUserDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户数据表 Mapper 接口
 * </p>
 *
 * @author lizhaoyi
 * @since 2024-01-09
 */
public interface SysUserMapper extends BaseMapper<SysUserDO> {

    /**
     * 根据条件分页查询用户列表
     * @param
     * @return
     */
    List<SysUserDTO> selectUserList(SysUserDO userDO);

    /**
     * 根据条件分页查询已分配用户角色列表
     * @param userDTO
     * @return
     */
    List<SysUserDTO> selectAllocatedList(SysUserDO userDO);

    /**
     * 查询未分配用户角色列表
     * @param userDTO
     * @return
     */
    List<SysUserDTO> selectUnallocatedList(SysUserDO userDO);
}
